<?php

/**
 * @author Martin Pernica
 * @copyright 2009
 */

class System{

	public static $db;
	public static $url;
	public static $version;
	
	public static $Debug = false;
	
	public function __construct(){
		self::$db = $GLOBALS['db'];
		self::$url = $GLOBALS['url'];
		self::$version = VERSION;
	}
	
	public function _redirect($where){
		header("Location: ".System::url.$where);
	}
	
	public function _redirect_out($where){
		header("Location: ".$where);
	}

}

?>